﻿using System;

namespace Bilibili.Model.Search
{
    public sealed class SearchVideoItem
    {
        public int code { get; set; }
        public int page { get; set; }
        public int numResults { get; set; }
        public int numPages { get; set; }
        public object result { get; set; }
        public long id { get; set; }
        public string mid { get; set; }
        public string author { get; set; }
        public string typename { get; set; }
        public string aid { get; set; }
        public string description { get; set; }
        private string _title;
        public string title
        {
            get => _title;
            set => _title = Uri.UnescapeDataString(value.Replace("<em class=\"keyword\">", string.Empty).Replace("</em>", string.Empty));
        }
        public string pic { get; set; }
        public string play { get; set; }
        public string video_review { get; set; }
        public string duration { get; set; }
    }
}